-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[WS CLI] Make env --scope=user compatible with GitLab groups
#20279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, tested both cases and they work flawlessly. ✔️
Awesome, thank you @filiptronicek ! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to update these because they were flaky. When we create a workspace, we update its deletion eligibility time asynchronously and that created races in the tests. Now we call svc.updateDeletionEligibilityTime explicitly and synchronously, so that we get rid of that possible variance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also base the test expectations off of the creationTime the instances are created with because otherwise we're comparing a date at the beginning of the test with a date at the end of it, which can cause trouble when we're at the edge of a millisecond. We could improve by not relying on the instance's creationTime and storing it ourselves separately, but this will do for now.
Description
Makes the "user scope" that the CLI lets you modify
*/**instead of the previous*/*.Related Issue(s)
Fixes ENT-847
How to test
*/**This should update the contents of your variable's value to
bar. You probably didn't name your variablefoo, so change that part if you want to see it work.Check the dashboard for the update or simply do
gp envFor backwards compat, also try having a differently-named environment variable with the old
*/*scope and try to update it withgp env --user. It should also work